<%@page import="com.java.bean.MusicBean"%>
<%@page import="java.sql.ResultSet"%>
<%@page contentType="text/html; charset=UTF-8" language="java"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<link rel="icon" href="./icon/ico.ico">
<head>
<title>正在播放</title>
</head>
<%
	String id = request.getParameter("id");
	ResultSet resultSet = MusicBean.getSong(id);
	if (resultSet.next()) {
		String path = resultSet.getString("url");
		String name = resultSet.getString("name");
		System.out.println(name);
		String times = resultSet.getString("play");
		MusicBean.changePlayTimes(id,
				(String.valueOf((Integer.valueOf(times) + 1))));
%>
<body>
	<video controls="" autoplay="" name="media"> <source
		src="<%=path%>" type="audio/mpeg"></video>
</body>
<iframe id="tmp_downloadhelper_iframe" style="display: none;"></iframe>
<%
	}
%>
</html>